﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SNDateCategory.aspx.cs" Inherits="TestViewbyProduct_SNDateCategory" Title="电性能测试数据检索" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script type="text/javascript" src="../js/my97datepicker/WdatePicker.js"></script>
    
    <div>  
        <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath>
        <br />
        <br />
&nbsp;&nbsp; &nbsp; &nbsp;
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate> 
    <div style="width:1300px; clear:left; float:left;">    
              测试人员1：<asp:TextBox ID="TextBox3" runat="server" ></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="TextBox3" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>　　
          
              测试人员2：<asp:TextBox ID="TextBox4" runat="server" ></asp:TextBox>　　
                        
              
               起始时间：<input type="text" runat="server" id="TextBox1" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                        
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                        
               终止时间：<input type="text" runat="server" id="TextBox2" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                        
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"   ControlToValidate="TextBox2" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator> 
     </div>    
     <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查  询" 
            ValidationGroup="VGroup1" />
     </ContentTemplate> 
    </asp:UpdatePanel>           
        
        <br />
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
    <br />
    <div style=" clear:both;">    
    <br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
        CellSpacing="1" 
            DataKeyNames="ProductSN,RecordTime,ProductTypeID,UserID,UserID2,ENAID,IsPass" 
            EmptyDataText="没有相关数据！" GridLines="None"
        OnPageIndexChanging="GridView1_PageIndexChanging" 
            OnSelectedIndexChanged="GridView1_SelectedIndexChanged" PageSize="20" 
            Width="100%">
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <Columns>
            <asp:CommandField SelectText="详细" ShowSelectButton="True" />
            <asp:BoundField DataField="ProductSN" HeaderText="天线序列号" />
            <asp:BoundField DataField="RecordTime" DataFormatString="{0:g}" HeaderText="测试时间" />
            <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" /> 
            <asp:BoundField DataField="TestStep" HeaderText="测试阶段" /> 
            <asp:BoundField DataField="MOID" HeaderText="MO" />
            <asp:BoundField DataField="ShiftTime" HeaderText="班次" />
            <asp:BoundField DataField="MaxISO" HeaderText="最小隔离值" />
            <asp:BoundField DataField="MaxVSWR" HeaderText="最大驻波值" />  
            <asp:BoundField DataField="MaxPhase" HeaderText="相位偏差最大值" />  
            <asp:BoundField DataField="MaxAm" HeaderText="耦合偏差最大值" />
            <asp:BoundField DataField="MaxInsertloss" HeaderText="插损最大值" />  
            <asp:BoundField DataField="MaxMag" HeaderText="最大耦合值" /> 
            <asp:BoundField DataField="UserID" HeaderText="测试员" />
            <asp:BoundField DataField="UserID2" HeaderText="测试员2" />
            <asp:BoundField DataField="ElecStatus" HeaderText="模块是否校准" />
            <asp:BoundField DataField="IsPAss" HeaderText="是否通过" />
        </Columns>
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
    </asp:GridView>
        <br />
        <br />
        <br />
        <br />
    <br />
    <br />
    </div> 
    </ContentTemplate> 
    </asp:UpdatePanel>
    </div> 
</asp:Content>

